<#macro showChild area, areapath>
		<#if area.children?exists&&area.children?has_content >
		leaf:false,
		children : [ 
			<#list area.children as eachOne>
			{
			id:"${eachOne.id?if_exists}",	
			code:"${eachOne.code?if_exists}",	
			ZIP:"${eachOne.ZIP?if_exists}",	
			TIP:"${eachOne.TIP?if_exists}",	
			depth:"${eachOne.depth?if_exists}",				
			parentId:"${eachOne.parent?if_exists.id?if_exists}",
			parentName:"${eachOne.parent?if_exists.name?if_exists}",
			areapath:"${areapath}${eachOne.name?if_exists}",			
			<@showChild eachOne,"${areapath}${eachOne.name?if_exists}"/>
			memo:"${eachOne.memo?if_exists}",
			keyword:"${eachOne.keyword?if_exists}",	
			showname : "${eachOne.code?if_exists}->${eachOne.name?if_exists}",					
			name : "${eachOne.name?if_exists}"		
			}
			<#if eachOne_has_next>,</#if>
			</#list>
		],
		<#else>
		leaf:true,
		</#if>
</#macro>

<#if pageRecords?exists >
[
    <#list pageRecords as each>
    {
		id:"${each.id?if_exists}",	
		code:"${each.code?if_exists}",	
		ZIP:"${each.ZIP?if_exists}",	
		TIP:"${each.TIP?if_exists}",	
		depth:"${each.depth?if_exists}",	
		parentId:<#if each.parent?exists>"${each.parent?if_exists.id?if_exists}"<#else>"-1"</#if>,
		parentName:<#if each.parent?exists>"${each.parent?if_exists.name?if_exists}"<#else>"-1"</#if>,
		memo:"${each.memo?if_exists}",
		keyword:"${each.keyword?if_exists}",
		areapath:"${each.name?if_exists}",	
		<@showChild each , each.name?if_exists />
		showname : "${each.code?if_exists}->${each.name?if_exists}",	
		name : "${each.name?if_exists}"	
	}	
	<#if each_has_next>,</#if>
	</#list>
]	
</#if>	